net/netip.Addr.v4 (method)
17 uses
net/netip (current package)
netip.go#L360: func (ip Addr) v4(i uint8) uint8 {
netip.go#L527: return ip.v4(0) == 169 && ip.v4(1) == 254
netip.go#L546: return ip.v4(0) == 127
netip.go#L565: return ip.v4(0)&0xf0 == 0xe0
netip.go#L595: return ip.v4(0) == 224 && ip.v4(1) == 0 && ip.v4(2) == 0
netip.go#L649: return ip.v4(0) == 10 ||
netip.go#L650: (ip.v4(0) == 172 && ip.v4(1)&0xf0 == 16) ||
netip.go#L651: (ip.v4(0) == 192 && ip.v4(1) == 168)
netip.go#L863: ret = appendDecimal(ret, ip.v4(0))
netip.go#L865: ret = appendDecimal(ret, ip.v4(1))
netip.go#L867: ret = appendDecimal(ret, ip.v4(2))
netip.go#L869: ret = appendDecimal(ret, ip.v4(3))
![]() |
The pages are generated with Golds v0.8.4. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |